<extend name='Layout/index'/>
<block name='breadcrumb'>
	<li>
		<i class="icon-home home-icon"></i>
		<a href="<{:U('Index/index')}>">首页</a>
	</li>
	<li class="active">文章列表</li>
</block>
<block name='page-header'>
	<h1>
		文章列表
		<small>
			<i class="icon-double-angle-right"></i>
			 文章查询
		</small>
	</h1>
</block>

<block name='main-content'>
	<div class="row">
		<div class="col-md-12">
			<table class="table table-striped">
				<thead>
					<tr>
						<td>ID</td>
						<td>文章标题</td>
						<td>文章分类</td>
						<td>发表时间</td>
						<td>是否显示</td>
						<td>是否推荐</td>
						<td>阅读数量</td>
						<td>评论数量</td>
						<td>操作</td>
					</tr>
				</thead>
				<tbody>
					<volist name='tags' id='vo'>
						<tr>
							<td><{$vo.id}></td>
							<td><{$vo.a_title}></td>
							<td><{$vo.t_name}></td>
							<td><{$vo.a_time}></td>
							<td><a href="<{:U('Articles/change',array('id'=>$vo['id']))}>" style="cursor:pointer"><if condition='$vo.status eq "1"'>显示<else/>不显示</if></a></td>
							<td><a href="<{:U('Articles/choose',array('id'=>$vo['id']))}>" style="cursor:pointer"><if condition='$vo.choose eq "1"'>推荐<else/>不推荐</if></a></td>
							<td><{$vo.a_commentnum}></td>
							<td><{$vo.a_viewnum}></td>
							<td>
								<a href="<{:U('delete',array('id'=>$vo['id']))}>" class="btn btn-danger" >删除</a>
								<a href="<{:U('edit',array('id'=>$vo['id']))}>" class="btn btn-info">修改</a>
							</td>
						</tr>
					</volist>
				</tbody>
			</table>
		</div>
	</div>
</block>
